<!--  -->
<template>
  <div class='content'>
    {{code}}
  </div>
</template>

<script>
export default {
  name: 'Question1',
  props: {
    code: {
      validator: function(value){
        return [100, 200, 300, 400, 999].includes(value)
        // 使用validator校验code的值必须是100,200,300,400,999的其中一种
      }
    }
  }
}
</script>

<style scoped>

</style>
